package artid.com.arttogo.bean;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * 
*    
* 项目名称：ArtworkArt   
* 类名称：RecomAuctionListParser   
* 类描述：拍卖会首页-推荐拍卖会列表实体类+解析   
* 创建人：耿卫斌   
* 创建时间：2017-3-8 下午5:17:41   
*
 */
public class RecomAuctionListParser extends AppItem implements Serializable {
	private static final long serialVersionUID = 1L;
	private String id;//拍卖会id
	private String title;//拍卖会名称
	private String imgurl;//拍卖会图
	private String preview_start_time;//预展开始时间
	private String preview_end_time;//预展结束时间
	private String auction_start_time;//拍卖开始时间
	private String auction_end_time;//拍卖结束时间
	private String special_num;//专场数量
	private String seller_name;//机构名称
	private String address;//所在城市
	private int status;//拍卖会的状态 0.往期 1.待预展 2.预展中 3.拍卖中
	private int height;//图片高度
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		id = obj.optString("id");
		title = obj.optString("title");
		imgurl = obj.optString("imgurl");
		preview_start_time = obj.optString("preview_start_time");
		preview_end_time = obj.optString("preview_end_time");
		auction_start_time = obj.optString("auction_start_time");
		auction_end_time = obj.optString("auction_end_time");
		special_num = obj.optString("special_num");
		seller_name = obj.optString("seller_name");
		address = obj.optString("address");
		status = obj.optInt("status");
		height = obj.optInt("height");
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getImgurl() {
		return imgurl;
	}
	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	public String getPreview_start_time() {
		return preview_start_time;
	}
	public void setPreview_start_time(String preview_start_time) {
		this.preview_start_time = preview_start_time;
	}
	public String getPreview_end_time() {
		return preview_end_time;
	}
	public void setPreview_end_time(String preview_end_time) {
		this.preview_end_time = preview_end_time;
	}
	public String getAuction_start_time() {
		return auction_start_time;
	}
	public void setAuction_start_time(String auction_start_time) {
		this.auction_start_time = auction_start_time;
	}
	public String getAuction_end_time() {
		return auction_end_time;
	}
	public void setAuction_end_time(String auction_end_time) {
		this.auction_end_time = auction_end_time;
	}
	public String getSpecial_num() {
		return special_num;
	}
	public void setSpecial_num(String special_num) {
		this.special_num = special_num;
	}
	public String getSeller_name() {
		return seller_name;
	}
	public void setSeller_name(String seller_name) {
		this.seller_name = seller_name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public RecomAuctionListParser() {
		super();
	}

	public RecomAuctionListParser(String id, String title, String imgurl, String preview_start_time, String preview_end_time, String auction_start_time, String auction_end_time, String special_num, String seller_name, String address, int status, int height) {
		this.id = id;
		this.title = title;
		this.imgurl = imgurl;
		this.preview_start_time = preview_start_time;
		this.preview_end_time = preview_end_time;
		this.auction_start_time = auction_start_time;
		this.auction_end_time = auction_end_time;
		this.special_num = special_num;
		this.seller_name = seller_name;
		this.address = address;
		this.status = status;
		this.height = height;
	}

	@Override
	public String toString() {
		return "RecomAuctionListParser{" +
				"id='" + id + '\'' +
				", title='" + title + '\'' +
				", imgurl='" + imgurl + '\'' +
				", preview_start_time='" + preview_start_time + '\'' +
				", preview_end_time='" + preview_end_time + '\'' +
				", auction_start_time='" + auction_start_time + '\'' +
				", auction_end_time='" + auction_end_time + '\'' +
				", special_num='" + special_num + '\'' +
				", seller_name='" + seller_name + '\'' +
				", address='" + address + '\'' +
				", status=" + status +
				", height=" + height +
				'}';
	}
}
